import request from "@/utils/request";

/**
 * 新增文章
 */
export const addArticleApi = (data) => request({
    url:'/article/add',
    method: "post",
    data
})

/**
 * 查询文章列表
 */
export const listArticleApi = (data) => request({
    url:'/article/listPage',
    params:data
})

/**
 * 查看文章详细
 */
export const detailArticleApi = (articleId) => request({
    url:'/article/detail/'+articleId
})

/**
 * 点赞
 */
export const goodArticleApi = (articleId) => request({
    url:'/article/good/'+articleId
})
